
public class Zy7 {
	public static void main(String[] args) {


		for ( int i=1992; i <=2017;i++) {

			for (int j = 1; j <=12; j++) {
				int m=31;
				if (j==4||j==6||j==9||j==11){
					m=30;
				}
				
				if(j==2){
					if(i%4==0&&i%100!=0&&i%400==0){
						m=29;
					}else{
						m=28;
					}
				}
				for (int k = 1; k <=m; k++) {
					System.out.println(i+"-"+j+"-"+k);


				}
				
			}

		}
		
	}
}
